package com.andy.springboot.controller;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.andy.springboot.annotation.IgnoreLoginCheck;

import io.swagger.annotations.ApiOperation;

/**
 * 健康检查
 * @author Andy.ye
 * @date 2018年3月23日 下午3:27:26
 */
@Controller
@IgnoreLoginCheck
public class HealthStatusController {

	@ApiOperation("服务健康检查接口（非应用）")
	@RequestMapping(value = "/health/status", method = RequestMethod.GET)
	@ResponseBody
	public String getServerStatus(HttpServletResponse resp) {
		return "ok";
	}

}
